Skip to content

refactor: split guidance composition#1506

Merged
leejet merged 1 commit into
masterfrom
guidance
May 17, 2026
Merged

refactor: split guidance composition#1506
leejet merged 1 commit into
masterfrom
guidance

Conversation

@leejet
Copy link
Copy Markdown
Owner

@leejet leejet commented May 17, 2026

Summary

This PR splits sampler guidance composition out of the sampling loop.

StableDiffusion::sample() previously mixed numerical sampling with CFG/image-CFG/SLG composition. This makes
guidance behavior harder to extend and review.

The new structure keeps sampler methods focused on stepping latents, while guidance objects own prediction
composition.

Related Issue / Discussion

N/A

Additional Information

Regression smoke tests were also run locally for normal CFG, CFG++ samplers, and SLG paths.

Checklist

@leejet leejet merged commit 50134e5 into master May 17, 2026
14 checks passed
@leejet leejet deleted the guidance branch May 18, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant